const userModule = {
    namespaced: true,
    state: () => ({
        name: 'chenfeng',
    }),
    mutations: {
        changeName(state, name) {
            state.name = name
        }
    },
    actions: {
        changeName({ commit }, payload) {
            commit('changeName', payload)
        }
    }
}

export default userModule;